package com.phiture.erp.produce.core.pojo.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.phiture.erp.common.constants.DictTypeConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 工艺工序 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpProduceProcessRespVO {

    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "工序编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("工序编码")
    private String codeNo;

    @Schema(description = "工序名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("工序名称")
    private String processName;

    @Schema(description = "工作中心")
    @ExcelProperty("工作中心")
    private Long workCenter;

    @Schema(description = "中心名称")
    @ExcelProperty("中心名称")
    private String workCenterName;

    @Schema(description = "状态(0:无效 1有效)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "状态(0:无效 1有效)", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.SYSTEM_STATUS_OK_NG)
    private Integer status;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "描述", example = "随便")
    @ExcelProperty("描述")
    private String description;

}